export default {
	data:()=>{
		return {
			url:'',
			postData:{},
			over:!1,
			page:1
		}
	},
	
	onReachBottom(){
		if(!over){
			this.page = this.page +1;
			this.postData.page = this.page;
			if(!this.url){
				console.error("page.js 需要定义 url")
			}
			this.$api.request({
				url:this.url,
				data:this.postData,
			}).then(res=>{
				if(res.code==1){
					let list = res.data.list.data;
					if(list.length<10){
						this.over = !0;
					}
					this.dealPage&&this.dealPage(res);
				}
			})
		}
		
	}
}